"""hah URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from p import views
from django.conf.urls import url, include
import re
app_name='p'#djang2.0以上不能直接命名namespace 所以在应用中加个声明

urlpatterns = [
    url(r'^uumei3',views.uumei,name='uumei'),#name指定名字后 不管前面怎么改都无所谓
    url(r'^niubi',views.niubi),
    url(r'^guanjianzi/(\d+)',views.guanjianzi),
    url(r'^login$',views.login),
    url(r'^login_check$',views.login_check),
    url(r'^test_ajax$',views.ajax_test),
    url(r'^ajax_handle$',views.ajax_handle),
    url(r'^login_ajax$',views.login_ajax),
    url(r'^login_ajax_check$',views.login_ajax_check),
    url(r'^set_cookie$',views.set_cookie),#设置cookie
    url(r'^get_cookie$',views.get_cookie),#获取cookie
    url(r'^set_session$',views.set_session),#设置session
    url(r'^get_session$',views.get_session),#获取session
    url(r'^clear_session$',views.clear_session),#清除session
    url(r'^index$',views.index),
    url(r'^temp_var$',views.temp_var),
    url(r'^temp_tags$',views.temp_tags),
    url(r'^temp_filter$',views.temp_filter),
    url(r'^base$',views.base),
    url(r'^html_escape$',views.html_escape),
    url(r'^change_pwd$',views.change_pwd),
    url(r'^change_pwd_action$',views.change_pwd_action),
    url(r'^verify_code$',views.verify_code),
    url(r'^url_reverse$',views.url_reverse),
    url(r'^show_args/(\d+)/(\d+)$',views.show_args,name='show_args'),#捕获位置参数
    url(r'^url_rever$',views.url_rever),
    url(r'^static_test$',views.static_test),

]